﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyGiaoVuDAL.Repositories.DatabaseRepositories;
using QuanLyGiaoVuDAL.DTO;
namespace QuanLyGiaoVuService.ReportServices
{
    public class ChiTietThongBaoReportService:IChiTietThongBaoReportService
    {
        private IChiTietThongBaoRepository _chiTietThongBaoRepository;
        public ChiTietThongBaoReportService(IChiTietThongBaoRepository chiTietThongBaoRepository)
        {
            _chiTietThongBaoRepository = chiTietThongBaoRepository;
        }
        public ChiTietThongBaoDTO GetChiTietThongBaoById(Guid MaChiTietThongBao)
        {
            return _chiTietThongBaoRepository.GetChiTietThongBaoById(MaChiTietThongBao);
        }
        public IEnumerable<ChiTietThongBaoDTO> GetAllChiTietThongBao()
        {
            return _chiTietThongBaoRepository.GetAllChiTietThongBao();
        }
        public IEnumerable<ChiTietThongBaoDTO> GetChiTietThongBaoByNguoiNhan(Guid MaNguoiNhan)
        {
            return _chiTietThongBaoRepository.GetChiTietThongBaoByNguoiNhan(MaNguoiNhan);
        }
    }
}
